<?php
namespace app\admin\controller;

class Index extends Base
{
    public function index()
    {

        return $this->fetch();
    }

    public function delruntime()
    {
    	$dir = config("afs.document_root").'/../runtime/temp';
        deleteFile($dir);
        $dir = config("afs.document_root").'/../runtime/cache';
        deleteFile($dir);
        // $dir = config("afs.document_root").'/../runtime/log';
        // deleteFile($dir);
        $array = ["status" => 1,"message" => "清除成功"];
        return json($array);
    }
}
